home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Japanese Font Menu
- Sent: 8/19/96 5:20 PM
- Received: 8/19/96 5:35 PM
- From: Shinji Shimizu, shimizu@kyoto.screen.co.jp
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>I tried to make 'Font'('Typeface') menu.
- >>Below is a way that you taught me.
- >>
- >>But when fontname is Japanese, it does not work well.
- >>Displaied menu chars are changed to English Script.
- >>
- >>Tell me how to make Japanese 'Font' menu.
- >>
- >>void AddFontsToMenu(Environment* ev, FW_CPullDownMenu* menu)
- >>{
- >> short count = 0;
- >> FW_CFontIterator fontIter;
- >> FW_CString fontName;
- >> ODCommandID commandID = cFirstFontCommand;
- >> for (fontName = fontIter.First(); fontIter.IsNotComplete();
- >>fontName = fontIter.Next())
- >> {
- >> menu->AppendTextItem(ev, fontName, commandID+count);
- >> count++;
- >> }
- >> gFontCount = count;
- >>}
- >
- >I don't know why this code doesn't work. The fontName passed to
- >AppendTextItem should have its locale.fScriptCode = smJapanese.
- >Eventually fontName is passed to FW_CTextItem::PrivInitTextItem. On a
- >Japanese System does a Japanese menu item need to have a script code in
- >the item icon field?
- >
- >Mary Boetcher
- >ODF Person
-
-
- I also don't why.But this code worked well with DR4 ODF on OpenDoc 1.0.4.
- I think this problem was made by DR5 ODF.
- Do you think so?
-
- Once would you test Japanese 'Font' menu?
- =====================================
- Shinji Shimizu
- DAINIPPON SCREEN MFG. CO, LTD.
- Research and Development Department
- Imageing Products Division
- E-mail:$B!!(Bshimizu@screen.co.jp
- =====================================
-
-